import 'package:json_annotation/json_annotation.dart';

part 'store_income.g.dart';

@JsonSerializable()
class StoreIncome {
  //未收金额
  @JsonKey(defaultValue: 0)
  int noPayAmount;

  //未结账订单数
  @JsonKey(defaultValue: 0)
  int noPayNum;

  //订单数
  @JsonKey(defaultValue: 0)
  int orderNum;

  //实收金额
  @JsonKey(defaultValue: 0)
  int totalAmount;

  StoreIncome({
    this.noPayAmount,
    this.noPayNum,
    this.orderNum,
    this.totalAmount,
  });

  factory StoreIncome.fromJson(Map<String, dynamic> json) => _$StoreIncomeFromJson(json);

  Map<String, dynamic> toJson() => _$StoreIncomeToJson(this);
}
